package com.baizhi.controller;

import com.baizhi.entity.BzAdmin;
import com.baizhi.service.BzAdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("admin")
public class BzAdminController {
    @Autowired
    private BzAdminService adminService;

    @RequestMapping("selectAll")
    public List<BzAdmin> selectAll(){
        return adminService.selectAll();
    }
}
